package com.wowo.day2;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentDao {
    public void insertStudent(Student student);
    public Student getStudentById(int id);
    public Student getStudentById2(int id);
    //根据 id --> 一条记录 --> Map 对象
    public Map getMapById(int id);

    //获得 VO:Value
    public List<Student> getStudentByScoreBetween(
            @Param("min") int minScore,
            @Param("max") int maxScore);
    public List<Student> getStudentsByScoreBetween2(Map<String,Object> map);

}
